<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<f:view contentType="text/html" encoding="UTF-8" locale="#{localeBean.locale}" xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets"
        >
    <f:loadBundle var="msg" basename="pl.pawluk.inz.web.SpringResourceBundle"/>
    <h:head>
        <title><h:outputText value="#{msg.webTitle}"/></title>
        <link rel="stylesheet" type="text/css" href="../css/style.css"/>
        <script type="text/javascript" src="../jwplayer/jwplayer.js"></script>
    </h:head>
    <h:body>
        <h:form id="gf" prependId="true" style="height: 0 !important;">
            <p:dialog id="growl" visible="#{not empty facesContext.messageList}" widgetVar="growlDialog" modal="true" header="#{msg.error}">
                <p:messages autoUpdate="true" showDetail="true" id="messages"/>
                <f:facet name="footer">
                    <p:commandButton id="closeGrowl" value="#{msg.OK}" onclick="growlDialog.close();" />
                </f:facet>
            </p:dialog>
        </h:form>
        <ui:insert name="editDialogForm"/>

        <div id="main_container">
            <ui:include src="header.xhtml"/>
            <ui:include src="menu.xhtml"/>
            <ui:insert name="body"/>
            <ui:include src="footer.xhtml"/>
        </div>
    </h:body>
</f:view>
</html>
